import {createRouter, createWebHashHistory} from 'vue-router'
import Home from "./components/Home.vue";
import Movie from "./components/Movie.vue";
import About from "./components/About.vue";
import Tab1 from "./components/Tab1.vue";
import Tab2 from "./components/Tab2.vue";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {path: '/', redirect: '/home'},
        {path: '/home', component: Home},
        {path: '/movie', component: Movie},
        {
            path: '/about', component: About, children: [
                {path: 'tab1', component: Tab1},
                {path: 'tab2', component: Tab2},
            ]
        },
    ]
})

export default router